package com.tt.mymu.scheduled;

import com.tt.mymu.service.UserViewService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class ScheduledTaskService {
    private static final String Cron = "0 0 5 * * *"; // 每天早上5点执行

    private UserViewService userViewService;
    @Scheduled(cron = Cron)
    public void performTaskUsingCron() {
        userViewService.getUserViewListUpdateOverTime();
    }
}
